﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Resources;

namespace TinyERP.Framework
{
    public class CommonMessage
    {
        public static string GetCanNotSaveError(string entity) 
        {
            return string.Format(AppResourceManager.GetInstance().GetString("MsgSaveError"), entity);
        }
        public static string GetCanNotDeleteError(string entity)
        {
            return string.Format(AppResourceManager.GetInstance().GetString("MsgDeleteError"), entity);
        }
        public static string GetSaveSuccessMessage(string entity)
        {
            return string.Format(AppResourceManager.GetInstance().GetString("MsgSaveSuccess"), entity);
        }
        public static string GetDeleteSuccessMessage(string entity)
        {
            return string.Format(AppResourceManager.GetInstance().GetString("MsgDeleteSuccess"), entity);
        }
        public static string GetDeleteConfirmMessage(string entity)
        {
            return string.Format(AppResourceManager.GetInstance().GetString("MsgDeleteConfirm"), entity);
        }
        public static string GetConfirmationText()
        {
            return AppResourceManager.GetInstance().GetString("Confirm");
        }

    }
}
